<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加评价</title>


<link href="${base}/resources/admin/css/amazeui.css" rel="stylesheet" type="text/css" />
<link href="${base}/resources/admin/css/common.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .text-line {
            line-height: 20px;
        }
    </style>
</head>
<body>
	<div class="path">
		<a href="${base}/asl-admin/common/index.htm">${message("admin.path.index")}</a> &raquo; 添加评价
	</div>
	<form id="inputForm" action="save.htm" method="post">
		<table class="input">
			<div class="tabContent">
                <tr>
                    <th>
                        会员：
                    </th>
                    <td>
                        <select name="memberId" data-am-selected="{searchBox: 1}">
						[#list members as m ]
                            <option value="${m.id}" >${m.username}（${m.name}）</option>
						[/#list]
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        课程：
                    </th>
                    <td>

                        <select name="courseId" data-am-selected="{searchBox: 1}">
                        [#list courses as c ]
                            [#if c.courseType == "finished"]
                            <option value="${c.id}" >${c.title}</option>
                            [/#if]
                        [/#list]
                        </select>
                        直播完才能评论
                    </td>
                </tr>
                <tr>
                    <th>
					    服务分：
                    </th>
                    <td>
                        <select name="serviceScore" >
                            [#list score as i]
                                <option value="${i}" title="${i}" >${i}</option>
                            [/#list]
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        方案分：
                    </th>
                    <td>
                        <select name="schemeScore" >
                        [#list score as i]
                            <option value="${i}" title="${i}" >${i}</option>
                        [/#list]
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
                        真实情况反馈分：
                    </th>
                    <td>
                        <select name="feedbackScore" >
                        [#list score as i]
                            <option value="${i}" title="${i}" >${i}</option>
                        [/#list]
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>
					    评价内容：
                    </th>
                    <td>
                        <textarea class="text text-line" style="width: 400px;height: 200px" name="content" ></textarea>
                    </td>
                </tr>
			</div>
		</table>
		<table class="input">
			<tr>
				<th>
					&nbsp;
				</th>
				<td>
					<input type="submit" class="button" value="${message("admin.common.submit")}" />
					<input type="button" class="button" value="${message("admin.common.back")}" onclick="location.href='list.htm'" />
				</td>
			</tr>
		</table>
	</form>
</body>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.tools.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.validate.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/amazeui.min.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/jquery.autocomplete.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/common.js"></script>
<script type="text/javascript" src="${base}/resources/admin/js/input.js"></script>
<script type="text/javascript">
$().ready(function() {

    var $inputForm = $("#inputForm");
    var $browserButton = $("#browserButton");

    [@flash_message /]

    $browserButton.browser();

    // 表单验证
    $inputForm.validate({
        rules: {
            courseId: "required",
            memberId: "required",
            content: "required",
            serviceScore: "required",
            schemeScore: "required",
            feedbackScore: "required"
        }
    });

});
</script>
</html>